package com.dbsop.domain.rest;

import com.dbsop.domain.EsConditionLtRange;
import com.dbsop.domain.rest.query.RestGtRangeQuery;

/**
 * Es条件查询 子查询
 */
public class EsRestConditionLtRange extends EsConditionLtRange {

    private EsRestCondition esRestCondition;

    private RestGtRangeQuery gtRangeQuery;

    public EsRestConditionLtRange(EsRestCondition esRestCondition) {
        this.esRestCondition = esRestCondition;
    }

    public EsRestConditionLtRange(EsRestCondition esRestCondition, RestGtRangeQuery gtRangeQuery) {
        this.esRestCondition = esRestCondition;
        this.gtRangeQuery = gtRangeQuery;
    }

    public EsRestCondition lt(Object value){
            gtRangeQuery.lt(value);
            return esRestCondition;
    }

    public EsRestCondition lte(Object value){
        gtRangeQuery.lte(value);
        return esRestCondition;
    }

}
